package com.example.game1.rooms;

import java.util.LinkedList;

import android.content.Context;

import com.example.game1.models.RoomSprite;

public abstract class Room
{
	// This will be used as the building block for any room we make
	// any room should extend from this base room
	// ie.  public class Level1 extends Room
	
	// Width and Height are in grid co-ordinates... not pixels
	private int mRoomWidth;
	private int mRoomHeight;
	
	Context mContext;
	private int mBackground;

	private LinkedList<RoomSprite> mSpriteList = new LinkedList<RoomSprite>();
	
	protected Room(Context c, int roomWidth, int roomHeight)
	{
		mContext = c;
		mRoomWidth = roomWidth;
		mRoomHeight = roomHeight;
	}
	
	public int getRoomWidth()
	{
		return mRoomWidth;
	}
	
	public int getRoomHeight()
	{
		return mRoomHeight;
	}
	
	protected void addSprite(RoomSprite s)
	{
		mSpriteList.add(s);
	}
	
	public LinkedList<RoomSprite> getSprites()
	{
		return mSpriteList;
	}
	
	protected void setBackgroundResource(int backgroundResource)
	{
		mBackground = backgroundResource;
	}
	
	public int getBackgroundResource()
	{
		return mBackground;
	}
	
	

}
